@import './base.less';

@primary-color: #00c7cf; // 全局主色
@link-color: #1890ff; // 链接色
@success-color: #52c41a; // 成功色
@warning-color: #faad14; // 警告色
@error-color: #f5222d; // 错误色
@font-size-base: 14px; // 主字号
@heading-color: rgba(0, 0, 0, 0.85); // 标题色
@text-color: rgba(0, 0, 0, 0.65); // 主文本色
@text-color-secondary: rgba(0, 0, 0, 0.45); // 次文本色
@disabled-color: rgba(0, 0, 0, 0.25); // 失效色
@border-radius-base: 4px; // 组件/浮层圆角
@border-color-base: #d9d9d9; // 边框色
@box-shadow-base: 0 2px 8px rgba(0, 0, 0, 0.15); // 浮层阴影
.df {
  display: flex;
}
.text-center {
  text-align: center;
}
.yuan {
  border-radius: 50%;
}
.omit {
  width: 100%;
  white-space: normal;
  text-overflow: -o-ellipsis-lastline;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  -webkit-box-orient: vertical;
}

.omittwo {
  white-space: normal;
  text-overflow: -o-ellipsis-lastline;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}
.d-a-center {
  display: flex;
  align-items: center;
}
.d-j-center {
  display: flex;
  justify-content: center;
}
.d-j-around {
  display: flex;
  justify-content: space-around;
}
.d-j-bet {
  display: flex;
  justify-content: space-between;
}
.d-j-end {
  display: flex;
  justify-content: flex-end;
}
.d-c-center {
  display: flex;
  justify-content: center;
  align-items: center;
}
.mar {
  margin: 0 auto;
}
.ant-btn .ant-btn-primary {
  display: flex;
  align-items: center;
}
.test1 {
  border: 1px solid red;
}
// 全局激活文字颜色
.act-font-color {
  color: @primary-color;
  font-weight: bolder;
}
.main-font-color {
  color: @primary-color;
}
// 主要背景色
.main-bg-color {
  background-color: #e6e6e6;
}
// table表格标题背景色
th.table {
  background-color: #e6e6e6 !important;
}
.ant-table-column-title {
  font-weight: bolder;
  // font-size: 1rem;
}

// 设置宽度和左侧边距
.ant-layout-sider-collapsed {
  min-width: 120px !important;
}
// 侧边栏折叠的宽度
.ant-layout-sider-collapsed .ant-menu-submenu-title {
  border: 1px solid red;
  padding: 0 calc(30%) !important;
}

// 折叠按钮直接折叠全部吧！还是比较好点我感觉

// 登录的CheckBox的大小
.auto-login {
  .ant-checkbox-inner {
    // 设置 checkbox 的大小
    width: 12px;
    height: 12px;
    // 设置对勾的 大小 和 位置
    &::after {
      position: absolute;
      display: table;
      border: 2px solid #fff;
      border-top: 0;
      border-left: 0;
      transform: rotate(45deg) scale(1) translate(-50%, -50%);
      opacity: 1;
      transition: all 0.2s cubic-bezier(0.12, 0.4, 0.29, 1.46) 0.1s;
      content: ' ';
    }
  }
}
.avatar-uploader > .ant-upload {
  width: 8rem;
  height: 8rem;
}
.ant-upload-select-picture-card i {
  font-size: 2rem;
  color: #999;
}

.ant-upload-select-picture-card .ant-upload-text {
  margin-top: 8px;
  color: #666;
}

//   点击上传去掉border和宽高的样式，
.ant-upload.ant-upload-select-picture-card {
  // border: none !important;
  // width: 0;
  // height: 0;
  .ant-upload {
    // padding: 0px;
  }
}

.ant-form-item-label > label {
  // font-size: 1rem;
}
.ant-btn {
  // font-size: 1rem;
}

// 图片墙的排列方式flex布局
.ant-upload-list {
  display: flex;
}

// 订单详情医嘱图片
.order-img {
  .ant-image {
    margin-right: 20px !important;
  }
}
// 订单详情tab表头激活背景色
.order {
  .ant-tabs-tab-active {
    font-size: 20px;
  }
  .ant-tabs-tab {
    font-size: 20px;
  }
}

// modal的标题
.ant-modal-header {
  .ant-modal-title {
    font-weight: bold;
  }
}

// 描述列表的label
.ant-descriptions-item-label {
  font-weight: bold;
}

.login {
  .ant-form-item-label > label {
    color: #fff;
  }
  .ant-page-header-back-button {
    color: #fff;
  }
  .ant-page-header-heading-title {
    color: #fff;
  }
}
.fl {
  display: flex;
}
.fle {
  display: flex;
  align-items: center;
}
.between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.around {
  display: flex;
  align-items: center;
  justify-content: space-around;
}

.flex {
  display: flex;
  align-items: center;
  justify-content: center;
}
.column {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.unit {
  font-size: 12px !important;
}
.tips {
  font-size: 12px !important;
  color: #999;
}

.button-box {
  display: flex;
  margin-bottom: 20px;
}

.global-button {
  display: flex;
  .ant-btn-primary {
    margin-right: 20px;
    margin-bottom: 20px;
  }
}

.ant-notification {
  white-space: pre-wrap !important;
}
